<template>
    <div :style="{marginTop:$store.state.navbarHeight+6+'px'}">
        <Navbar :showIcon="true" bgColor="bg-gradual-2" title="مارس كىنوخانىسى" />
        <div class="wrap" :style="{marginTop:customBar()*2+12+'rpx'}">
            <!-- <web-view src="https://mp.weixin.qq.com/s/VMjC_L0z2OJnS8YPY5lN7w"> -->
            <web-view :src="ad.adUrl">
            </web-view>
        </div>
    </div>
</template>

<script>
import Navbar from "@/components/Navbar.vue";
import { mapState, mapActions, mapGetters } from "vuex";
export default {
    components: {
        Navbar
    },
    data() {
        return {
            ad: ""
        };
    },
    methods: {
        ...mapGetters(["evenOrOdd", "clientRect", "customBar"])
    },
    mounted() {
        let ad = wx.getStorageSync("AD");
        this.ad = ad;
    },
    onShareAppMessage() {
        return {
            title: "مارس كىنوخانىسى",
            path: `/pages/Home/Home`,
            success: res => {
                console.log("share-success");
            },
            fail: () => {
                console.log("share-fail");
            },
            complete: () => {}
        };
    }
};
</script>

<style lang="scss" scoped>
</style>